package com.hqyj.ssm_project.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Idcard {
    private Integer idcardId;

    private String idcardNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date idcardBegindate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date idcardEnddate;

    private User user;

    public Integer getIdcardId() {
        return idcardId;
    }

    public void setIdcardId(Integer idcardId) {
        this.idcardId = idcardId;
    }

    public String getIdcardNum() {
        return idcardNum;
    }

    public void setIdcardNum(String idcardNum) {
        this.idcardNum = idcardNum == null ? null : idcardNum.trim();
    }

    public Date getIdcardBegindate() {
        return idcardBegindate;
    }

    public void setIdcardBegindate(Date idcardBegindate) {
        this.idcardBegindate = idcardBegindate;
    }

    public Date getIdcardEnddate() {
        return idcardEnddate;
    }

    public void setIdcardEnddate(Date idcardEnddate) {
        this.idcardEnddate = idcardEnddate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Idcard{" +
                "idcardId=" + idcardId +
                ", idcardNum='" + idcardNum + '\'' +
                ", idcardBegindate=" + idcardBegindate +
                ", idcardEnddate=" + idcardEnddate +
                ", user=" + user +
                '}';
    }
}